import request from "@/utils/request";
/**
 * 根据id获取场馆信息
 * @returns {*}
 */

// 培训列表
export function trainList(params) {
  return request({
    url: "/systemj/information/getTrainManagement",
    method: "get",
    params: params,
  });
}

// 修改培训管理
export function trainUpdate(data) {
  return request({
    url: `/systemj/information/editTrainList`,
    method: "post",
    data: data,
  });
}

//导出培训管理
export function trainExport(query) {
  return request({
    url: `/systemj/information/exportTrainManageData`,
    method: "get",
    params: query,
  });
}

// 删除培训
export function trainEdit(data) {
  return request({
    url: "/systemj/information/delete",
    method: "DELETE",
    data,
  });
}

// 发布置顶
export function trainPublish(data) {
  return request({
    url: "/systemj/information/editTrainList",
    method: "post",
    data,
  });
}
